package com.cmnit.analysis.application

import com.cmnit.analysis.common.TApplication
import com.cmnit.analysis.controller.{EnTollController, EnTollFlowController, ExTollController, ExTollFlowController, GantryController, GantryFlowController, GantryPlateController}
import org.apache.log4j.Logger


object AllApplication extends TApplication {
  val logger: Logger = Logger.getLogger(this.getClass)
  private val gantryController = new GantryController
  private val extollController = new ExTollController
  private val entollController = new EnTollController
  private val gantryPlateController = new GantryPlateController
  private val enTollFlowController = new EnTollFlowController
  private val exTollFlowController = new ExTollFlowController
  private val gantryFlowController = new GantryFlowController

  def run(acctTime: String): Unit = {
    start("All-Application") {
      gantryController.controller(acctTime)
      extollController.controller(acctTime)
      entollController.controller(acctTime)
      gantryPlateController.controller(acctTime)
      enTollFlowController.controller(acctTime)
      exTollFlowController.controller(acctTime)
      gantryFlowController.controller(acctTime)
    }
  }
}

